<form class="form-horizontal" id="editProject">
	<input type="hidden" name='id' value="${(bean.id)!''}" />
	<input type="hidden" id="pId"  value="${(bean.parent_id)!''}" />
	
	<div class="form-group">
		<label class="col-md-2 control-label required">目录名</label>
		<div class="col-md-4">
			<input type='text' name="name" class='form-control' value="${(bean.name)!''}" />
		</div>
	</div>
	
	<div class="form-group">
		<label class="col-sm-2 control-label">上级目录</label>
		<div class="col-sm-4" style="position:relative;">
			<input readonly type="text" ng-click="show_tree()" id="parent_id" parent_id="" value="${(bean.parent_name)!''}" style="cursor:pointer;" class="form-control" />
			<div id="tree_box" class="tree_box" ng-show='showTree'>
				<ul class="tree tree-lines" id="project_tree" data-ng-init="init()" >
				  <li class='has-list' ng-repeat="bean1 in proList" ng-if="bean1.id=== rootId " >
				  	<i class="list-toggle icon"></i>
				    <a href="#" ng-bind="bean1.name" ng-click='selectParent($event)' attr-id='{{bean1.id}}' ></a>
				    <ul class="tree tree-lines">
				      <li class='has-list' ng-repeat="bean2 in proList" ng-if="bean2.parent_id === bean1.id" >
				      	<i class="list-toggle icon"></i>
				      	<a href="#" ng-bind="bean2.name" ng-click='selectParent($event)' attr-id='{{bean2.id}}'></a>
				      	<ul class="tree tree-lines" >
					      <li class='has-list' ng-repeat="bean3 in proList" ng-if="bean3.parent_id === bean2.id" >
					      	<i class="list-toggle icon"></i>
					      	<a href="#" ng-bind="bean3.name" ng-click='selectParent($event)' attr-id='{{bean3.id}}'></a>
					      	<ul class="tree tree-lines" >
						      <li class='has-list' ng-repeat="bean4 in proList" ng-if="bean4.parent_id === bean3.id" >
						      	<i class="list-toggle icon"></i>
						      	<a href="#" ng-bind="bean4.name" ng-click='selectParent($event)' attr-id='{{bean4.id}}'></a>
						      </li>
						    </ul>
					      </li>
					    </ul>
				      </li>
				    </ul>
				  </li>
				</ul>
			</div>
		</div>
	</div>

	<div class="form-group">
		<label class="col-md-2 control-label"> 排序序号</label>
		<div class="col-md-4">
			<input type="text" id="seq" name="seq" class="form-control" value="${(bean.seq)!''}" />
		</div>
	</div>

	<div class="form-group" style="margin-bottom: 0;">
		<div class="col-md-12">
			<div id='project-formError' class='alert alert-danger hiding'></div>
		</div>
	</div>
	
	<div class="form-group">
	    <div class="col-md-offset-2 col-md-10" >
	       <button type="button" class="btn btn-primary" ng-click="saveProject()" >保存</button>
	       <a href='javascript:void(0)'  class='btn' ng-show='delShow' ng-click='delPro()' >删除</a>
	    </div>
    </div>
</form>